// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_CHK_QUALITY_CHECKING
// * CreateDate    : 2011-11-23 15:45:46
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-23 15:45:46
// * LastChanger   : 2011-11-23 15:45:46
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ChkQualityCheckingEntity : EntityBase
    {
        public ChkQualityCheckingTable TableSchema
        {
            get
            {
                return ChkQualityCheckingTable.Current;
            }
		}
		
		public ChkQualityCheckingEntity()
        {

        }
		
		public ChkQualityCheckingEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckingId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ID"]));
			this.RelatedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ORDER_ID"]));
			this.CheckingCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_CODE"]));
			this.CheckingOrderType = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ORDER_TYPE"]));
			this.CheckingPerson = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PERSON"]));
			this.CheckingDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHECKING_DATE"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPRIVED_DATE"]));
			this.ApprivedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPRIVED_BY"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public ChkQualityCheckingEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckingId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ID"]));
			this.RelatedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ORDER_ID"]));
			this.CheckingCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_CODE"]));
			this.CheckingOrderType = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ORDER_TYPE"]));
			this.CheckingPerson = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PERSON"]));
			this.CheckingDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHECKING_DATE"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPRIVED_DATE"]));
			this.ApprivedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPRIVED_BY"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ChkQualityCheckingTable.Current;
            }
        }
		
		#region Perporty List
        public string CheckingId
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_CHECKING_ID)); }
            set { SetData(ChkQualityCheckingTable.C_CHECKING_ID, value); }
        }
		
        public string RelatedOrderId
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_RELATED_ORDER_ID)); }
            set { SetData(ChkQualityCheckingTable.C_RELATED_ORDER_ID, value); }
        }
		
        public string CheckingCode
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_CHECKING_CODE)); }
            set { SetData(ChkQualityCheckingTable.C_CHECKING_CODE, value); }
        }
		
        public string CheckingOrderType
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_CHECKING_ORDER_TYPE)); }
            set { SetData(ChkQualityCheckingTable.C_CHECKING_ORDER_TYPE, value); }
        }
		
        public string CheckingPerson
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_CHECKING_PERSON)); }
            set { SetData(ChkQualityCheckingTable.C_CHECKING_PERSON, value); }
        }
		
        public DateTime CheckingDate
        {
            get { return Convert.ToDateTime(GetData(ChkQualityCheckingTable.C_CHECKING_DATE)); }
            set { SetData(ChkQualityCheckingTable.C_CHECKING_DATE, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(ChkQualityCheckingTable.C_CREATED_DATE)); }
            set { SetData(ChkQualityCheckingTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_CREATED_BY)); }
            set { SetData(ChkQualityCheckingTable.C_CREATED_BY, value); }
        }
		
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(ChkQualityCheckingTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(ChkQualityCheckingTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_LAST_MODIFIED_BY)); }
            set { SetData(ChkQualityCheckingTable.C_LAST_MODIFIED_BY, value); }
        }
		
        public DateTime ApprivedDate
        {
            get { return Convert.ToDateTime(GetData(ChkQualityCheckingTable.C_APPRIVED_DATE)); }
            set { SetData(ChkQualityCheckingTable.C_APPRIVED_DATE, value); }
        }
		
        public string ApprivedBy
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_APPRIVED_BY)); }
            set { SetData(ChkQualityCheckingTable.C_APPRIVED_BY, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_STATUS)); }
            set { SetData(ChkQualityCheckingTable.C_STATUS, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(ChkQualityCheckingTable.C_REMARK)); }
            set { SetData(ChkQualityCheckingTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

